package com.qf.lanzhou.blog.api.service.impl;

import com.qf.lanzhou.blog.api.dao.AuditDao;
import com.qf.lanzhou.blog.api.dao.Impl.login.AuditDaoImpl;
import com.qf.lanzhou.blog.api.service.ChangeReportCommentService;

/**
 * @author 是柠檬甜
 * @ClassName checkReportCommentServiceImpl
 * @description 举报评论核验服务层实现
 * @date 2020/12/21 17:47
 * @modifier 是柠檬甜
 * @date 2020-12-21 17:47
 * @Version V1.0
 */
public class ChangeReportCommentServiceImpl implements ChangeReportCommentService {
    private AuditDao auditDao=new AuditDaoImpl();
    @Override
    public String changeStatus(Long commentId) {
        if(!auditDao.updateCommentByCommentId(commentId)){
            throw new RuntimeException("系统繁忙，处理失败");
        }
        return "处理成功";
    }
}
